package com.songlanyun.modules.marketing.groupbuy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.marketing.groupbuy.entity.GroupBuyActivity;
import com.songlanyun.modules.marketing.groupbuy.model.dto.GroupBuyActivityDTO;

import java.util.Date;
import java.util.Map;

/**
 * 拼团活动
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-27 14:03:39
 */
public interface GroupBuyActivityService extends IService<GroupBuyActivity> {

    PageUtils queryPage(Map<String, Object> params);

    GroupBuyActivity saveGroupBuy(GroupBuyActivityDTO dto);

    void updateGroupBuy(GroupBuyActivityDTO dto);

    GroupBuyActivity getById(Long id, boolean isThrow);

    GroupBuyActivity getByShopIdAndId(Long shopId, Long seckillId, boolean b);

    Long finishTime(Long shopId);

    GroupBuyActivity getNow();

    void delById(Long id);
}

